package base

import "fmt"

func NumberOperation(a, b int) {
	fmt.Printf("%d + %d = %d\n", a, b, a+b)
	fmt.Printf("%d - %d = %d\n", a, b, a-b)
	fmt.Printf("%d * %d = %d\n", a, b, a*b)
	fmt.Printf("%d / %d = %d\n", a, b, a/b)
	fmt.Printf("%d 余 %d = %d\n", a, b, a%b)
}

func StringOperation(a, b string) {
	//12
	fmt.Println(a + b)

	strAdd := fmt.Sprintf("%s + %s = %s", a, b, a+b)
	fmt.Println(strAdd)
}

func SelfOperation(a int) {
	a++
	fmt.Println(a)
	a--
	fmt.Println(a)
}
